#include <iostream>
using namespace std;
class Circle
{
public:
    Circle(double r = 0)
    {
        _r = r;
    }
    void show()
    {
        cout << "r=" << _r << endl;
    }
    double circum()
    {
        return 2 * 3.14 * _r;
    }
    double area()
    {
        return 3.14 * _r * _r;
    }
private:
    double _r;
};
int main()
{
    double r;
    cin >> r;
    Circle c1, c2(r);
    c1.show();
    c2.show();
    cout << c1.circum() << endl;
    cout << c2.circum() << endl;
    cout << c1.area() << endl;
    cout << c2.area() << endl;
    return 0;
}